package com.zbf.config;

import org.springframework.stereotype.Component;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/9/10  13:40
 * 描述:
 */
@Component
public class MyServletContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("===========启动完毕");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("===========停止完毕");
    }
}
